from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton, QLabel,QLineEdit
from PySide6.QtCore import Qt
# 继承编译出来的ui窗口
from ui.Ui_calculator import Ui_CalculatorForm
"""
本程序实现了一个简单的计算器
"""
class MyWindow(QMainWindow,Ui_CalculatorForm):
    def __init__(self):
        super().__init__()

        # 初始化UI
        self.setupUi(self)

        # 建立一个专门处理槽函数的方法

        self.bind()

    def bind(self):
        self.pushButton_0.clicked.connect(lambda: print(0))


if __name__ == '__main__':
    app = QApplication([])
    window = MyWindow()
    window.show()
    app.exec()
